document.addEventListener("DOMContentLoaded",function() {
    setCarousel();
    setPhoto();
});
function setCarousel() {
    var obj = {
        imgList: document.querySelector(".carousel-img-list"),
        parentBox: document.querySelector(".carousel"),
        currMarks: document.querySelector(".carousel-marks"),
        arrows: {
            left: document.querySelector(".carousel-left-arrow"),
            right: document.querySelector(".carousel-right-arrow")
        }
    };
    new Carousel(obj);
}
function setPhoto() {
    var obj = {
        imgList:document.querySelector(".photo-list"),
        parentBox:document.querySelector(".photo-box"),
        arrows: {
            left: document.querySelector(".photo-left-arrow"),
            right: document.querySelector(".photo-right-arrow")
        },
        count: 3,
        canDrag: true
    };
    new Carousel(obj);
}